import Vue from 'vue';
import App from './App.vue';
import fontawesome from './fontawesome.js';
import router from './router';

Vue.use(fontawesome);

// Vue.prototype.titleName = 'hello title';
// Vue.prototype.num = 10;

const EventBus = new Vue({
  data() {
    return {
      num: 100,
      titleName: 'hello title'
    }
  }
});
Vue.prototype.$store = EventBus;

new Vue({
  el: '#app',
  router,//路由表
  render: h => h(App),
});